import Vue from 'vue'
import App from './App'
import store from './store/index.ts'
import core from './core/core.service.ts'
Vue.config.productionTip = false

App.mpType = 'app'

Vue.prototype.$store = store;
Vue.prototype.$core = core;

// 自动导入directive下面的所有文件 IDE server has started  
//自定义指令
const directives=require.context('./directive',false,/.(js)$/)
directives.keys().forEach(filename=>{
	const items = directives(filename)
	for (let fName in items){
		Vue.directive(fName,items[fName])
	}
})
// 自动导入filter下面的所有文件
const filters=require.context('./filter',false,/.(js)$/)
filters.keys().forEach(filename=>{
	const items = filters(filename)
	for (let fName in items){
		Vue.filter(fName,items[fName])
	}
})
const app = new Vue({
    ...App,
	store
})


app.$mount()
